package top.dancun.easbaseinfo.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.dancun.common.utils.R;
import top.dancun.easbaseinfo.config.FeignConfig;
@Component
@FeignClient(value = "EAS-user" ,configuration = FeignConfig.class)
public interface ShiroFeign {
    /**
     * 获取用户权限列标
     * @param token token
     * @return R
     */
    @PostMapping("/easuser/shiro/getUserPermissions")
    public R getUserPermissions(@RequestParam(name = "token") String token);

    /**
     *查询token相关数据
     * @param token token
     * @return R
     */
    @PostMapping("/easuser/shiro/queryByToken")
    public R queryByToken(@RequestParam(name = "token") String token);

    /**
     *根据token查询用户
     * @param token token
     * @return R
     */
    @PostMapping("/easuser/shiro/queryUser")
    public R queryUser(@RequestParam(name = "token") String token);
}
